package com.woniuxy.service.impl;

import com.woniuxy.dao.RbacPermDao;
import com.woniuxy.entity.RbacPerm;
import com.woniuxy.service.PermService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class PermServiceImpl implements PermService {
    @Autowired(required = false)
    RbacPermDao rbacPermDao;
    @Override
    public RbacPerm findPermById(int id) {
        return rbacPermDao.findPermById(id);
    }

    @Override
    public int add(RbacPerm rbacPerm) {
        return rbacPermDao.add(rbacPerm);
    }

    @Override
    public int permDelete(int id) {
        return rbacPermDao.delete(id);
    }

    @Override
    public int updatePerm(RbacPerm rbacPerm) {
        return rbacPermDao.update(rbacPerm);
    }
}
